package com.xxin.module.controller;

import com.xxin.core.annotaion.PetRestController;
import com.xxin.core.resp.Result;
import com.xxin.module.pojo.entity.OmsOrder;
import com.xxin.module.service.oms.OmsOrderService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author lvjx
 * @description dfd
 * @date 2024/9/6 15:28
 */
@PetRestController("/oms")
@RequiredArgsConstructor
@Slf4j
@Tag(name = "订单信息管理")
public class OmsController{
	
	final OmsOrderService omsOrderService;
	
	@Operation(summary = "查询所有订单信息")
	@GetMapping("/list")
	public Result<List<OmsOrder>> oms(OmsOrder omsOrder){
		List<OmsOrder> list = omsOrderService.list();
		log.info("查询出的订单信息:{}",list);
		return Result.ok(list);
	}
}
